package com.cy.embeddingdemo.service;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import org.springframework.stereotype.Service;

@Service
public class ToolService {

    @Tool("某个地区有多少个名字相同的人")
    public int sameNameCount(@P("地区") String location, @P("名字") String name) {

        System.out.println("截取地区信息：" + location);
        System.out.println("截取名字信息：" + name);

        return 1002;
    }

}
